Replication data for "Households with solar installations are ideologically diverse and more politically active than their neighbors." Mildenberger, Matto, Howe, Peter D., and Miljanich, Chris. Nature Energy.

These files permit replication of the main analyses and figures reported in the paper. 

Replication files have been de-identified, removing household addresses, census tract, ZIP code, and county of residence. De-identified data allow replication of Figures 2, 4, 5, and 6 and Tables 1 and 2. 

solar_replication.R contains code to replicate these figures and tables. 

hhdata.Rda contains household-level data for all analyzed solar and centrol households, including those with missing voter file data.

hhdata.matches.Rda contains household-level data only for matched pairs of solar and control households with voter file data present for both households. 

Variable names

matchid: character string of matched id code for pairs of solar and control households
id.x: character string with "c" prefix for control households and "s" prefix for solar households
type: factor identifying households with solar or non-solar control households
tsmart_partisan_score_hhmean: Targetsmart Democratic partisan model score
strat: stratum of solar household density used in sampling from 1 (few solar households in census tract) to 5 (many solar households in tract)
n.hh: number of residents with voter file data per household
dem.prop: proportion of household residents registered as Democrats (for states where party registration data are available)
rep.prop: proportion of household residents registered as Republicans (for states where party registration data are available)
white.prop: proportion of household residents categorized as White, non-Hispanic or Latino
black.prop: proportion of household residents categorized as Black or African American, non-Hispanic or Latino
asian.prop: proportion of household residents categorized as Asian, non-Hispanic or Latino
hispanic.prop: proportion of household residents categorized as Hispanic or Latino
amer.prop: proportion of household residents categorized as American Indian and Alaska Native, non-Hispanic or Latino
other.prop: proportion of household residents categorized as Other, non-Hispanic or Latino
bach.prop: proportion of household residents with a bachelors degree or higher
homeown.prop: proportion of household residents identified as owning their own home
voteg.prop: proportion of household residents who voted in any general election from 2008-2017
votep.prop: proportion of household residents who voted in any primary election from 2008-2017
votem.prop: proportion of household residents who voted in any municipal election from 2008-2017
fem.prop: proportion of household residents identified as female 
reg.prop: proportion of household residents registered to vote
unaff.prop: proportion of household residents with no party affiliation (for states where party registration data are available)
Household.Income.Amount_hhmean: household income (in thousands)
income_log_hhmean: log transform of household income
id.y: character string with "s" prefix for matched solar households for both solar and control households
State_name: state of household 
